home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 775 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  715 b 

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: i = atoi(NULL);
  5. Date: Tue, 09 Jan 1996 05:23:32 GMT
  6. Organization: Netcom
  7. Message-ID: <30f1fb1b.269185216@nntp.ix.netcom.com>
  8. References: <DKwCsG.IGD@cs.openu.ac.il>
  9. NNTP-Posting-Host: ix-dc13-04.ix.netcom.com
  10. X-NETCOM-Date: Mon Jan 08  9:22:49 PM PST 1996
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. shimoco@mail.tlm.openu.ac.il (Shimon Cohen) wrote:
  14.  
  15. |>Hi !
  16. |>
  17. |>What ANSI C says about:
  18. |>i = atoi(NULL);
  19.  
  20. ANSI says nothing specifically about this.  It defines atoi as taking
  21. a pointer to a string.  This means that atoi(NULL) results in
  22. undefined behavior (i.e., anything can happen).
  23.  
  24.  
  25. Michael M Rubenstein
  26.